package com.jaydenxiao.common.base;

import android.view.View;

import com.jaydenxiao.common.basebean.MsgEvent;

import org.greenrobot.eventbus.EventBus;

/**
 * Created by hasee on 2017/11/2.
 */

public class SearchDialogViewModel extends BaseViewModel {


    public SearchDialogViewModel(BaseActivity mActivity) {
        super();
    }


    public boolean onQueryTextChange(String newText){

        EventBus.getDefault().post(new MsgEvent(MsgEvent.ITEM_EDIT,newText));
        return true;
    }


    public void clickEvent(View v,String key){
        EventBus.getDefault().post(new MsgEvent(MsgEvent.BUTTON_SUBMIT,key));
    }





}
